import axios from '@renderer/utils/request'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const test = (data: object = {}): any => {
  return new Promise((resolve, reject) => {
    axios
      .get('/art/list', { params: data })
      .then((response) => {
        resolve(response.data) // 成功时解析Promise并传递数据
      })
      .catch((error) => {
        reject(error) // 失败时拒绝Promise并传递错误信息
      })
  })
}